From: Jan Beulich Date: Thu, 6 Feb 2020 08:53:43 +0000 (+0100) Subject: Arm/GICv2: don't needlessly use xzalloc_bytes() X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~733 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6531ace86e669a04da32fe770580355513a60712;p=xen.git Arm/GICv2: don't needlessly use xzalloc_bytes() ... when plain xzalloc() (which is more type safe) does. Signed-off-by: Jan Beulich Acked-by: Julien Grall --- diff --git a/xen/arch/arm/gic-v2.c b/xen/arch/arm/gic-v2.c index 256988c665..0f747538db 100644 --- a/xen/arch/arm/gic-v2.c +++ b/xen/arch/arm/gic-v2.c @@ -969,7 +969,7 @@ static void gicv2_add_v2m_frame_to_list(paddr_t addr, paddr_t size, nr_spis, V2M_MAX_SPI - V2M_MIN_SPI + 1); /* Allocate an entry to record new v2m frame information. */ - v2m_data = xzalloc_bytes(sizeof(struct v2m_data)); + v2m_data = xzalloc(struct v2m_data); if ( !v2m_data ) panic("GICv2: Cannot allocate memory for v2m frame\n");